package com.zy.sing;

/**
 * @Author Gong
 * @Description
 * @dATE 2021/11/22 14:43
 **/
public class Test {
    public static void main(String args[]) {
//        Single  s1 = Single.getSingle();      //访问静态方法
//        Single  s2 = Single.getSingle();
//        System.out.println(s1);
//        System.out.println(s2);
//        if (s1==s2){
//            System.out.println("s1 is equals to s2!");
//        }

//        Single.test();
//        Single  instance1 =Single.getInstance();
//        Single  instance2 =Single.getInstance();
//        System.out.println(instance1);
//        System.out.println(instance2);
    }


}
